class A{
    {
        System.out.println("父类实例化代码块");
    }

    static{
        System.out.println("父类静态代码块");
    }

    public A(){
        System.out.println("父类构造方法");
    }
}

class B extends A{
    {
        System.out.println("子类实例化代码块");
    }

    static{
        System.out.println("子类静态代码块");
    }

    public B(){
        System.out.println("子类构造方法");
    }

}

public class Test {
    public static void main(String[] args) {
        B b = new B();
        System.out.println("==============");
        B b2 = new B();
    }
}
